//
//  RBNetworkTool.swift
//  myWeiBo
//
//  Created by 刘邓诏初 on 16/4/9.
//  Copyright © 2016年 刘邓诏初. All rights reserved.
//

import UIKit
import AFNetworking

class RBNetworkTool: AFHTTPSessionManager {
    // 单例
    static let sharedInstance: RBNetworkTool = {
        let tool = RBNetworkTool()
        // failed: unacceptable content-type: text/plain" 
        // 失败原因：无法解析 text/plain 类型
        tool.responseSerializer.acceptableContentTypes?.insert("text/plain")
        return tool
    }()
    
    
}
